<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/commons/include/html_doctype.html" %>
<html>
	<head>
		<%@include file="/commons/page/codegen.jsp" %>
		<script type="text/javascript" src="${ctx}/js/plugins/artTemplate/artTemplate.js"></script>
		<script type="text/javascript" src="${ctx}/js/gpoint/rdp/zoneCTL/doorZone.js"></script>
	</head>
	<body>
		<!-- 顶部按钮 -->
		<div class="wrapper wrapper-content  animated fadeInRight col-sm-12">
			<div class="">
				<form  class="fr-form"  id="doorZoneForm" action="save.htm" >
					<input type="hidden" name="m:doorZone:id"  value="${doorZone.id}"/>

			 	<div class="fr_response_field col-sm-12" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">SERVICECODE</label>
				  	<div class="fr-form-block" data-type="fixed">
				<input type="text" class="fr-form-control" name="m:doorZone:servicecode" value="${doorZone.servicecode}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div>
			 	<div class="fr_response_field col-sm-12" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">NAME</label>
				  	<div class="fr-form-block" data-type="fixed">
				<input type="text" class="fr-form-control" name="m:doorZone:name" value="${doorZone.name}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div>
			 	<div class="fr_response_field col-sm-12" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">PID</label>
				  	<div class="fr-form-block" data-type="fixed">
				<input type="text" class="fr-form-control" name="m:doorZone:pid" value="${doorZone.pid}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div>
			 	<div class="fr_response_field col-sm-12" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">CREATE_TIME_</label>
				  	<div class="fr-form-block" data-type="fixed">
				<div class="input-icon" >
					<i class="fa fa-calendar"></i>
					<input type="text" readonly="readonly" class="fr-form-control datepicker" datefmt="yyyy-MM-dd"   name="m:doorZone:createTime"   value="<fmt:formatDate value="${doorZone.createTime}"  pattern="yyyy-MM-dd"/>" validate="{required:false}"/>
				</div>
				  					
				 	</div>
			  	</div>
			</div>
			 	<div class="fr_response_field col-sm-12" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">CREATE_BY_</label>
				  	<div class="fr-form-block" data-type="fixed">
				<input type="text" class="fr-form-control" name="m:doorZone:createBy" value="${doorZone.createBy}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div>
			 	<div class="fr_response_field col-sm-12" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">UPDATE_TIME_</label>
				  	<div class="fr-form-block" data-type="fixed">
				<div class="input-icon" >
					<i class="fa fa-calendar"></i>
					<input type="text" readonly="readonly" class="fr-form-control datepicker" datefmt="yyyy-MM-dd"   name="m:doorZone:updateTime"   value="<fmt:formatDate value="${doorZone.updateTime}"  pattern="yyyy-MM-dd"/>" validate="{required:false}"/>
				</div>
				  					
				 	</div>
			  	</div>
			</div>
			 	<div class="fr_response_field col-sm-12" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">UPDATE_BY_</label>
				  	<div class="fr-form-block" data-type="fixed">
				<input type="text" class="fr-form-control" name="m:doorZone:updateBy" value="${doorZone.updateBy}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div>
			 	<div class="fr_response_field col-sm-12" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">IP_</label>
				  	<div class="fr-form-block" data-type="fixed">
				<input type="text" class="fr-form-control" name="m:doorZone:ip" value="${doorZone.ip}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div>
			 	<div class="fr_response_field col-sm-12" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">EXT1</label>
				  	<div class="fr-form-block" data-type="fixed">
				<input type="text" class="fr-form-control" name="m:doorZone:ext1" value="${doorZone.ext1}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div>
			 	<div class="fr_response_field col-sm-12" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">EXT2</label>
				  	<div class="fr-form-block" data-type="fixed">
				<input type="text" class="fr-form-control" name="m:doorZone:ext2" value="${doorZone.ext2}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div>
			 	<div class="fr_response_field col-sm-12" >
			 	<div class="fr-form-group"> 
				 	<label class="fr-control-label">EXT3</label>
				  	<div class="fr-form-block" data-type="fixed">
				<input type="text" class="fr-form-control" name="m:doorZone:ext3" value="${doorZone.ext3}" validate="{required:false}"/>
				  					
				 	</div>
			  	</div>
			</div>
	  		<table name="s:" data-mode="inner" data-required="" class="table table-bordered table-hover table-condensed">
			<caption>
				<div class="fr-table-header-label">服务商代码</div>
				<div class="fr-table-tools">
							<a class="btn btn-primary fa fa-add js-add-record"  data-type="add"  href="javascript:void(0);">添加</a>
							<a class="btn btn-danger fa fa-remove js-remove-record"  data-type="remove"  href="javascript:void(0);">删除</a>
				</div>
			</caption>
			<thead>
				<tr>
		     		 <th class="fr_table_col_checkbox" width="45px"><input role="checkbox" class="checkAll" name="s:" type="checkbox"></th>
	       			 <th>CONTROLLERNO</th>
	       			 <th>CONTROLLERSN</th>
	       			 <th>ENABLED</th>
	       			 <th>IP</th>
	       			 <th>PORT</th>
	       			 <th>ZONEID</th>
	       			 <th>INTERLOCK</th>
	       			 <th>ANTIBACK</th>
	       			 <th>NOTE</th>
	       			 <th>MORECARDS_GOINOUT</th>
	       			 <th>DOORINVALIDOPEN</th>
	       			 <th>DOORSNAMES</th>
	       			 <th>CREATE_TIME_</th>
	       			 <th>CREATE_BY_</th>
	       			 <th>UPDATE_TIME_</th>
	       			 <th>UPDATE_BY_</th>
	       			 <th>IP_</th>
	       			 <th>EXT1</th>
	       			 <th>EXT2</th>
	       			 <th>EXT3</th>
	       			 <th>FORCEWARN</th>
	       			 <th>INVALIDCARDWARN</th>
	       			 <th>PERIPHERALCONTROL</th>
	       			 <th>LASTDELADDDATETIME</th>
	       			 <th>LASTDELADDCONSUEMRSTOTAL</th>
	       			 <th>LASTDELADDANDUPLOADDATETIME</th>
	       			 <th>LASTDELADDANDUPLOADCONSUEMRSTO</th>
	       			 <th>LASTCONSOLEUPLOADDATETIME</th>
	       			 <th>LASTCONSOLEUPLOADCONSUEMRSTOTA</th>
	       			 <th>LASTCONSOLEUPLOADPRIVILEGE</th>
	       			 <th>LASTCONSOLEUPLOADVALIDPRIVILEG</th>
	       			 <th>DOOROPENTOOLONG</th>
		      	<th class="fr_table_col_remove" width="45px">管理</th>
		    </tr>
			</thead>
			<tbody>	
				<c:forEach varStatus="stat" var="" items="${doorZone.PoList}">	
					<tr>	
						<td><input role="checkbox" class="cbox " type="checkbox" name="s:" ></td>
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::controllerno:${stat.index+1}" value="${doorZone.controllerno}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::controllersn:${stat.index+1}" value="${doorZone.controllersn}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::enabled:${stat.index+1}" value="${doorZone.enabled}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::ip:${stat.index+1}" value="${doorZone.ip}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::port:${stat.index+1}" value="${doorZone.port}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::zoneid:${stat.index+1}" value="${doorZone.zoneid}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::interlock:${stat.index+1}" value="${doorZone.interlock}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::antiback:${stat.index+1}" value="${doorZone.antiback}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::note:${stat.index+1}" value="${doorZone.note}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::morecardsGoinout:${stat.index+1}" value="${doorZone.morecardsGoinout}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::doorinvalidopen:${stat.index+1}" value="${doorZone.doorinvalidopen}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::doorsnames:${stat.index+1}" value="${doorZone.doorsnames}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<div class="input-icon" >
					<i class="fa fa-calendar"></i>
					<input type="text" readonly="readonly" class="fr-form-control datepicker" datefmt="yyyy-MM-dd"   name="s::createTime:${stat.index+1}"   value="<fmt:formatDate value="${doorZone.createTime}"  pattern="yyyy-MM-dd"/>" validate="{required:false}"/>
				</div>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::createBy:${stat.index+1}" value="${doorZone.createBy}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<div class="input-icon" >
					<i class="fa fa-calendar"></i>
					<input type="text" readonly="readonly" class="fr-form-control datepicker" datefmt="yyyy-MM-dd"   name="s::updateTime:${stat.index+1}"   value="<fmt:formatDate value="${doorZone.updateTime}"  pattern="yyyy-MM-dd"/>" validate="{required:false}"/>
				</div>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::updateBy:${stat.index+1}" value="${doorZone.updateBy}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::ip:${stat.index+1}" value="${doorZone.ip}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::ext1:${stat.index+1}" value="${doorZone.ext1}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::ext2:${stat.index+1}" value="${doorZone.ext2}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::ext3:${stat.index+1}" value="${doorZone.ext3}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::forcewarn:${stat.index+1}" value="${doorZone.forcewarn}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::invalidcardwarn:${stat.index+1}" value="${doorZone.invalidcardwarn}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::peripheralcontrol:${stat.index+1}" value="${doorZone.peripheralcontrol}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::lastdeladddatetime:${stat.index+1}" value="${doorZone.lastdeladddatetime}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::lastdeladdconsuemrstotal:${stat.index+1}" value="${doorZone.lastdeladdconsuemrstotal}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::lastdeladdanduploaddatetime:${stat.index+1}" value="${doorZone.lastdeladdanduploaddatetime}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::lastdeladdanduploadconsuemrsto:${stat.index+1}" value="${doorZone.lastdeladdanduploadconsuemrsto}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::lastconsoleuploaddatetime:${stat.index+1}" value="${doorZone.lastconsoleuploaddatetime}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::lastconsoleuploadconsuemrstota:${stat.index+1}" value="${doorZone.lastconsoleuploadconsuemrstota}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::lastconsoleuploadprivilege:${stat.index+1}" value="${doorZone.lastconsoleuploadprivilege}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::lastconsoleuploadvalidprivileg:${stat.index+1}" value="${doorZone.lastconsoleuploadvalidprivileg}" validate="{required:false}"/>
												</td>	
				 		<td>
							
				<input type="text" class="fr-form-control" name="s::dooropentoolong:${stat.index+1}" value="${doorZone.dooropentoolong}" validate="{required:false}"/>
												</td>	
						<td class="fr_table_col_remove" width="45px">
									
								<a title="删除" class="btn  btn-xs btn-outline btn-row js-remove-row" href="javascript:void(0);"><i class=" fa fa-times-circle-o  fa-lg fa-font-red"></i></a>
						</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		
	<script type="text/html" id="s::TrTemplate">
	 
		<tr>
		  	<td><input role="checkbox" class="cbox " type="checkbox" name="s:" ></td>
	 	 	 	<td>
				<input type="text" class="fr-form-control" name="s::controllerno:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::controllersn:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::enabled:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::ip:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::port:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::zoneid:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::interlock:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::antiback:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::note:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::morecardsGoinout:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::doorinvalidopen:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::doorsnames:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<div class="input-icon" >
					<i class="fa fa-calendar"></i>
					<input type="text" readonly="readonly" class="fr-form-control datepicker" datefmt="yyyy-MM-dd"   name="s::createTime:{{idx}}"    validate="{required:false}"/>
				</div>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::createBy:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<div class="input-icon" >
					<i class="fa fa-calendar"></i>
					<input type="text" readonly="readonly" class="fr-form-control datepicker" datefmt="yyyy-MM-dd"   name="s::updateTime:{{idx}}"    validate="{required:false}"/>
				</div>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::updateBy:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::ip:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::ext1:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::ext2:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::ext3:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::forcewarn:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::invalidcardwarn:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::peripheralcontrol:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::lastdeladddatetime:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::lastdeladdconsuemrstotal:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::lastdeladdanduploaddatetime:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::lastdeladdanduploadconsuemrsto:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::lastconsoleuploaddatetime:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::lastconsoleuploadconsuemrstota:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::lastconsoleuploadprivilege:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::lastconsoleuploadvalidprivileg:{{idx}}"  validate="{required:false}"/>
			</td>
<td>
				<input type="text" class="fr-form-control" name="s::dooropentoolong:{{idx}}"  validate="{required:false}"/>
			</td>
		  	<td class="fr_table_col_remove" width="45px">
				<a title="删除" class="btn  btn-xs btn-outline btn-row js-remove-row" href="javascript:void(0);"><i class=" fa fa-times-circle-o  fa-lg fa-font-red"></i></a>
			</td>
		</tr>
	</script>
</form>

			</div>
		</div>
	</body>
</html>